#ifndef REGISTERDIALOG_H
#define REGISTERDIALOG_H

#include <QDialog>
#include <QString>

namespace Ui {
class RegisterDialog;
}

class RegisterDialog : public QDialog
{
    Q_OBJECT

public:
    explicit RegisterDialog(QWidget *parent = nullptr);
    ~RegisterDialog();

    QString getRegisteredUsername() const { return m_registeredUsername; }

private slots:
    void on_registerButton_clicked();
    void checkUsernameAvailability();

private:
    Ui::RegisterDialog *ui;
    QString m_registeredUsername;
};

#endif // REGISTERDIALOG_H
